package com.aode.login.repository;

import android.app.Application;

import androidx.lifecycle.MutableLiveData;

import com.aode.common.bean.request.LoginData;
import com.aode.common.bean.response.User;
import com.aode.common.bean.web.Result;
import com.aode.login.network.HttpData;

public class Repository {
    private MutableLiveData<Result<User>> mutableLiveData = new MutableLiveData<>();
    private Application application;
    public Repository(Application application){
        this.application = application;
    }

    public void login(LoginData loginData){
        mutableLiveData = HttpData.login(loginData);
    }

    public MutableLiveData<Result<User>> getLogin(){
        return mutableLiveData;
    }
}
